Creating an Interval Schedule

To create an interval schedule, use the job schedule interval new command. An interval schedule runs jobs at a specified interval after the previous job finishes. For instance, if a job uses an interval schedule of 12 hours and takes 30 minutes to complete, the job runs at the following times:

When you create an interval schedule, you can specify the interval in units of days, hours, minutes, and seconds.

The following example creates an interval schedule named interval8 that runs a job eight hours after the completion of the previous occurrence of the job:

node::> job schedule interval new -name interval8 -hours 8

The following example creates an interval schedule named interval2.30.30 that runs a job two hours, 30 minutes, and 30 seconds after the completion of the previous occurrence of the job:

node::> job schedule interval new -name interval2.30.30 -hours 2 -minutes 30 -seconds 30

Displaying Information about Interval Schedules

The job schedule interval show command displays the name and description of interval schedules. Other information is displayed in a detailed view and if other parameters are specified. See the reference page for the command for details.

The following examples display information about all interval schedules, and then detailed information about the interval schedule named interval2.30.30.

node::> job schedule interval show
Name                Description 
interval2.30.30     Every 2h30m30s
interval8           Every 8h

node::> job schedule interval show -name interval2.30.30
       Name: interval2.30.30
       Days: 0
      Hours: 2
    Minutes: 30
    Seconds: 30
Description: Every 2h30m30s

Modifying an Interval Schedule

The job schedule interval modify command enables you to modify the time intervals for an interval schedule. To change an interval schedule's name, delete it and recreate it.

The following example modifies an interval schedule named interval8 to run at an interval of seven hours and 45 minutes.

node::> job schedule interval modify -name interval8 -hours 7
-minutes 45
node::> job schedule interval show -name interval8
       Name: interval8
       Days: 0
      Hours: 7
    Minutes: 45
    Seconds: 0
Description: Every 7h45m

Deleting an Interval Schedule

To delete an interval schedule, use the job schedule interval delete command. The following example deletes an interval schedule named interval8.

node::> job schedule interval delete -name interval8